//域名
//consttesturl1='http://192.168.8.34';
//consttesturl='http://192.168.8.6';

// const testurl1 = 'https://y.toasin.cn/api/public/v1';
// const testurl = 'https://y.toasin.cn/api/public/v1';
// const testur2 = 'https://y.toasin.cn/api/public/v1';

// const apiRoot = 'http://127.0.0.1:8730/api/public/v1';
// const imageRoot = 'http://127.0.0.1:8730/api/public/v1';
const apiRoot = 'https://api.yipaiju.com/api/public/v1';
const imageRoot = 'https://api.yipaiju.com/api/public/v1';
// const aichatRoot = 'http://1.12.43.211:8000';
const aichatRoot = 'https://api.yipaiju.com/dify';
const testurl1 = apiRoot;
const testurl = apiRoot;
const testur2 = apiRoot;

const base={//接口列表
apiRoot: apiRoot,
imageRoot: imageRoot,
// phoneCode:'https://sms.dun.163.com/v2/sendsms',//验证码
phoneCode:testurl+'/sendsms',//验证码
apiqb:testurl+'/houses',//首页列表
qb:testurl+'/houses',//首页列表
// api1:testurl+'/foreclosed_houses',//优选列表
api1:testurl+'/houses/foreclosed',//优选列表
fpsearch:testurl+'/houses/foreclosed/search',//优选搜索列表
// api2:testurl+'/foreclosed_houses/booking_orders',//优选预约
api2:testurl+'/houses/foreclosed/booking/orders',//优选预约
api3:testurl+'/houses/foreclosed/booking/orders/followers',//优选预约跟单
api4:testurl+'/houses/foreclosed/signing/orders',//优选签约订单
// fpxq:testurl+'/client/foreclosed_houses',//优选详情
fpxq:testurl+'/client/houses/foreclosed',//优选详情
// fpxqAdmin:testurl+'/foreclosed_houses',//优选详情
fpxqAdmin:testurl+'/houses/foreclosed',//优选详情
// fpyy:testurl+'/foreclosed_houses/booking_orders',//优选预约详情
fpyy:testurl+'/houses/foreclosed/booking/orders',//优选预约详情
// fpgd:testurl+'/foreclosed_houses/booking_orders/followers',//优选跟单详情
fpgd:testurl+'/houses/foreclosed/booking/orders/followers',//优选跟单详情
// fpqy:testurl+'/marketer/foreclosed_houses/signing_orders',//优选签约提交
// fptd:testurl+'/marketer/foreclosed_houses/signing_orders',//优选签约退单
// fpyyxg:testurl+'/marketer/foreclosed_houses/booking_orders',//优选预约修改

fpqy:testurl+'/marketer/houses/foreclosed/signing/orders',//优选签约提交
fptd:testurl+'/marketer/houses/foreclosed/signing/orders',//优选签约退单
fpyyxg:testurl+'/marketer/houses/foreclosed/booking/orders',//优选预约修改

// api5:testurl+'/discount_houses',//折扣列表
api5:testurl+'/houses/discount',//折扣列表
addzk:testurl+'/houses/discount',//新建折扣房源
zksearch:testurl+'/houses/discount/search',//折扣搜索
// api6:testurl+'/discount_houses/booking_orders',//折扣预约
api6:testurl+'/houses/discount/booking/orders',//折扣预约
api7:testurl+'/houses/discount/booking/orders/followers',//折扣预约跟单
api8:testurl+'/houses/discount/signing/orders',//折扣签约
// zkxq:testurl+'/client/discount_houses',//折扣详情
zkxq:testurl+'/client/houses/discount',//折扣详情
// zkxqAdmin:testurl+'/discount_houses',//内部折扣详情
zkxqAdmin:testurl+'/houses/discount',//内部折扣详情
// zkyy:testurl+'/discount_houses/booking_orders',//折扣预约详情
zkyy:testurl+'/houses/discount/booking/orders',//折扣预约详情
zkgd:testurl+'/houses/discount/booking/orders/followers',//折扣跟单详情
zkzt:testurl+'/houses/discount',//折扣状态修改
zkscqy:testurl+'/marketer/houses/discount/signing/orders',//折扣状态修改
zksc:testurl+'/market/manager/houses/discount/signing/orders',//折扣状态修改
zkcw:testurl+'/financial/manager/houses/discount/signing/orders',//折扣状态修改
zkyyxg:testurl+'/marketer/houses/discount/booking/orders',//折扣状态修改


// api9:testurl+'/housepreupload_orders',//放盘预约
api9:testurl+'/houses/preupload/orders',//放盘预约
// api10:testurl+'/housepreupload_orders/followers',//放盘预约跟单
api10:testurl+'/houses/preupload/orders/followers',//放盘预约跟单
api11:testurl+'/houses/uploading/orders',//放盘签约
// fanpxq:testurl+'/housepreupload_orders',//放盘详情
fanpxq:testurl+'/houses/preupload/orders',//放盘详情
fptj:testurl+'/houses/discount',//放盘提交
fanpgd:testurl+'/houses/preupload/orders/followers',//放盘跟单详情
fpsc:testurl+'/market/manager/houses/uploading/orders',//放盘市场审核
// fanphouse:testurl+'/marketer/houseuploading_orders',//提交状态到订单
fanphouse:testurl+'/marketer/houses/uploading/orders',//提交状态到订单
fanpyyxg:testurl+'/marketer/houses/preupload/orders',//提交状态到订单

// api12:testurl+'/demand_orders',//需求订单（我要好房
api12:testurl+'/demand/orders',//需求订单（我要好房
api13:testurl+'/demand/orders/followers',//需求订单跟单
// xqtj:testurl+'/demand_orders',//需求提交
xqtj:testurl+'/demand/orders',//需求提交
// hfxq:testurl+'/demand_orders',//好房详情
hfxq:testurl+'/demand/orders',//好房详情

// api14:testurl+'/valueadded_orders',//增值订单
api14:testurl+'/valueadded/orders',//增值订单
api15:testurl+'/valueadded/orders/followers',//增值订单跟单
zzxq:testurl+'/valueadded/orders',//增值详情
zzqyxq:testurl+'/valueadded/signingorders',

// api16:testurl+'/foreclosed_houses/investigation_orders',//尽调订单
api16:testurl+'/houses/foreclosed/investigation/orders',//尽调订单
api17:testurl+'/houses/foreclosed/investigation/orders/followers',//尽调跟单
jdyy:testurl+'/houses/foreclosed/investigation/orders',//尽调预约
jdgd:testurl+'/houses/foreclosed/investigation/orders/followers',//尽调预约跟单

api18:testurl+'/bookingorders',//全部预约订单
api19:testurl+'/signingorders',//全部签约订单

api20:testurl+'/refresh',//刷新token
api21:testurl1+'/authenticate/code',//使用OAuth2授权码认证
api22:testurl+'/authenticate/basic',//用户名和密码认证
api23:testurl1+'/users/-/cred:bind',//！！！需要在Header中携带之前产生temp_access_token
api24:testurl1+'/users/{user_pk}:bind-redeem',//！！！需要在Header中携带之前产生temp_access_token
api25:testurl+'/users/-/cred:bind',//生成一个邀请码

api26:testurl1+'/users/-/info:batchGet',//批量获取用户信息
api27:testurl1+'/users/-/phone:batchGet',//批量获取用户手机号
api28:testurl+'/users/-/invites:count-batchGet',//邀请数量统计
api29:testurl+'/users/-/invites:inviter-batchGet',//邀请路径
api30:testurl1+'/users/me',//登录后传值
codeVali:testurl1+'/users/code/vali',//修改手机号
fyyh:testurl1+'/users',//分页获取用户信息
userInfo:testurl1+'/users/me',//获取当前用户信息
userIdentity:testurl1+'/users/me',//获取当前用户身份
market:testurl+'/market/manager/houses/foreclosed/signing/orders',//市场经理修改签约信息
finance:testurl+'/financial/manager/houses/foreclosed/signing/orders',//财务修改签约信息
// api54:testurl1+'/users/me/phone:wechat',//！！！解密手机号码
api54:testurl1+'/users/me/phone/wechat',//！！！解密手机号码
collection:testurl+'/favorites',//收藏
news:testurl+'/notices',//消息
qbyy:testurl+'/bookingorders/me',
img:testurl+'/storage/batchGet',//图片
api41:testurl1+'/roles',//！！！权限列表
api42:testurl1+'/users',//！！！获取所有用户集合、获取目标用户的联系方式
api43:testurl1+'/users/-/info:batchGet',//！！！获取所有用户信息
api46:testurl1+'/groups',//！！！用户组别、增加组别根目录
api48:testurl1+'/users',//！！！用户与角色
api49:testurl1+'/groups:create-leaf',//！！！创建子组
api50:testurl1+'/groups',//！！！改变分组
api52:testurl1+'/users/me/roles',//！！！激活角色

api36:testurl1+'/users',//！！！用户邀请
api37:testurl1+'/users',//！！！获取所有用户列表
api38:testurl1+'/users/-/phone:batchGet',//批量获取用户手机号
api39:testurl1+'/users/-/invites:count-batchGet',//邀请数量统计
// api40:testurl1+'/users/-/invites:inviter-batchGet',//！！！批量获取用户邀请路径
api40:testurl1+'/users/invites/relation',//！！！获取用户邀请关系，反加一二级
api32:testurl+'/users/-/cred:bind',//！！！需要在Header中携带之前产生temp_access_token
api33:testurl+'/users/-/cred:bind',//！！！需要在Header中携带之前产生temp_access_token
api57:testurl+'/client/houses/foreclosed/signing/orders',//法拍客户评论
api58:testurl+'/client/houses/discount/signing/orders',//折扣客户评论
api59:testurl+'/client/houses/uploading/orders',//放盘客户评论


api34:testurl+'/favorites',//！！！收藏
api35:testurl+'/notices',//！！！提醒

// apicitydsec:testurl+'/get_address',//！！！获取省市区
apicitydsec:testurl+'/getAddress',//！！！获取省市区
apiqrcode:testurl1+'/wechat',//！！！生成二维码
api66:testurl+'/storage/signature',//！！！上传图片
api67:testurl+'/storage',//！！！拉取上传的图片
api68:testurl+'/storage',//！！！删除上传的图片

api60:testurl+'/client/houses/foreclosed/booking/orders',//！！！拍卖预约订单评价
api61:testurl+'/client/houses/discount/booking/orders',//！！！折扣预约订单评价
// api62:testurl+'/client/housepreupload_orders',//！！！放盘预约订单评价
api62:testurl+'/client/houses/preupload/orders',//！！！放盘预约订单评价
api63:testurl+'/client/houses/foreclosed/investigation/orders',//！！！尽调预约订单评价
api64:testurl+'/client/demand/orders',//！！！好房预约订单评价
api65:testurl+'/client/valueadded/orders',//！！！增值预约订单评价
apiYyallUser:testurl+'/bookingorders/me',//！！！全部预约关于我
khzkqy:testurl+'/client/houses/discount/signing/orders',//！！！客户折扣签约
khfanpqy:testurl+'/client/houses/uploadingorders',//！！！客户放盘签约
khfpqy:testurl+'/client/houses/foreclosed/signing/orders',//！！！客户优选签约
apisetting:testurl1+'//users/me/settings',//！！！获取用户设定
gethouses:testurl+'/houses/search',//！！！批量拿房源

userHistory:testur2 +'/users',//！！！用户浏览记录列表
// getHistory:testur2 +'/access-log',//！！！获取用户浏览记录
getHistory:testur2 +'/access/log',//！！！获取用户浏览记录
historyList:testur2 +'/houses',//！！！房源浏览记录列表
apiqrdata:testurl1+'/wechat/qrcode:resolve',//二维码解析
sf:testurl+'/calculator',//税费计算器
banner:testurl1+'/organizations/my/banners',//首页banner图
userSearch:testurl1+'/users:search',//首页banner图
dataCenter:testurl+'/datacenter',//数据中心
weekSummary:testurl+'/datacenter/week_summary',//数据中心
weekInfo:testurl+'/datacenter/week_info',//数据中心
today:testurl+'/houses',//数据中心列表
plsxj:testurl+'/houses/discount/batch/update',//批量上下架
plscfy:testurl+'/houses/discount/batch/destroy',//批量删除折扣房

modifyInfo:testurl1+'/users/me/info',//用户登录（微信修改授权）

modelConfig: testurl1 + '/model/config/random',  // 获取模块配置的图片
wechatTest: testurl1 + '/wechat/test' ,
aichatApi:aichatRoot + '/dify/chatflow-ypj', //AI对话流
priceConfig:testurl1 +'/system/config/configKey', //获取价格配置
wechatPay:testurl1 +'/wechat/pay/unifiedorder', //拉起支付
queryOrderList:testurl1 +'/wechat/pay/query-order-list', //获取报告集合
  transcribeAudio: 'http://218.17.184.249:55000/transcribe' // 语音转文字
}
export default base;